﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;

namespace YArchitech.HYSpace
{
	[Transaction(TransactionMode.Manual)]
	public class TestInsertInfo : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
			UIDocument activeUIDocument = commandData.Application.ActiveUIDocument;
			Document document = activeUIDocument.Document;
			Selection selection = activeUIDocument.Selection;
			Transaction transaction = new Transaction(document, "绘制辅助线");
			transaction.Start();
			transaction.Commit();
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
